<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
        <script src="js/time.js?"></script>
    </head>
    <body >
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <?php
        	//print_r($arealist);
        	//print_r($modulelist);
        	//var_dump($row);
        ?>
        <form action="" method="POST" id="rowForm">
            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tablegrid tableedit">
            
            	<tr><td><?= translate('ACTIVITY_GROUP_NAME') ?></td>
            	<td><?=$row['activityname'] ?></td></tr>  
            	
            	<tr><td><?= translate('ACTIVITY_GROUP_STARTTIME') ?>:</td>
            	<td><?=date('Y-m-d H:i:s', $row['starttime'])?></td></tr>  
            	
            	<tr><td><?= translate('ACTIVITY_GROUP_STARTTIME') ?>:</td>
            	<td><?=date('Y-m-d H:i:s', $row['starttime'])?></td></tr> 
            	
            	<tr><td><?= translate('ACTIVITY_GROUPAREA_AREAID') ?>:</td>
            	<td>
            	<?php foreach ($arealist as $key => $value) { ?>
            		<?php echo " $key:$value[areaname]       "; ?>
            	<?php } ?>
            	</td></tr> 
            	
            	<?php foreach ($modulelist as $key => $value) { ?>
	            	<tr><td>&nbsp;</td><td>&nbsp;</td></tr>
	            	
	            	<tr><td><?= translate('ACTIVITY_MODULE_MODULENAME') ?>:</td>
	            	<td><?=$value['tabledes'] ?>
	            	</td></tr>  
	            	
	            	<tr><td><?= translate('ACTIVITY_STRATEGY_STRAGEGYNAME') ?>:</td>
	            	<td><?=$value['strategyname'] ?>
	            	</td></tr>  
	            	
	            	<tr><td><?= translate('ACTIVITY_MODULE_DES') ?>:</td>
	            	<td><?=$value['des'] ?>
	            	</td></tr>  
            	<?php } ?>
            	   	
            </table>
        </form>
        <script type="text/javascript">
            SG.init("core.form", function() {
                $.formValidator.initConfig({formid: "#rowForm", submitonce: true});
                $("#groupname").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                });
        </script>
    </body>
</html>